//: CashInOutEditForm.java 30.10.2008 16:26:30Z apt $
package com.devunion.salon.web.form;

import com.devunion.salon.web.bean.PaymentBean;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Timoshenko Alexander
 */
public class CashInOutEditForm extends ActionForm {
    private String number;
    private String notes;
    private PaymentBean paymentBean;

    private List<LabelValueBean> methods = new ArrayList<LabelValueBean>();
    private String submittedValue;

    public CashInOutEditForm() {
        this.paymentBean = new PaymentBean();
    }

    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
        number = notes = submittedValue = null;
        this.paymentBean = new PaymentBean();
        super.reset(actionMapping, httpServletRequest);    //To change body of overridden methods use File | Settings | File Templates.
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public PaymentBean getPaymentBean() {
        return paymentBean;
    }

    public void setPaymentBean(PaymentBean paymentBean) {
        this.paymentBean = paymentBean;
    }

    public String getSubmittedValue() {
        return submittedValue;
    }

    public void setSubmittedValue(String submittedValue) {
        this.submittedValue = submittedValue;
    }

    public List<LabelValueBean> getMethods() {
        return methods;
    }

    public void setMethods(List<LabelValueBean> methods) {
        this.methods = methods;
    }
}
